/**
 * [removeHtmlTag description]过滤html标签
 * @param  {[type]} e [description]html文本
 * @return {[type]}   [description]
 */
function removeHtmlTag(e)
{
  e = e.replace(/<\/?[^>]*>/g,'');
  return e;
}


/**
 * [substrChinese description]截取中文字符
 * @param  {[type]} e [description]字符串
 * @param  {[type]} l [description]截取长度
 * @return {[type]}   [description]
 */
function substrChinese(e,l)
{
  var strlen = 0; 
  var s = "";
  for(var i = 0;i < e.length;i++)
  {
    if(e.charCodeAt(i) > 128){
      strlen += 2;
    }else{ 
      strlen++;
    }
    s += e.charAt(i);
    if(strlen >= l){ 
      return s ;
    }
  }
  return s;
}